# -*- coding: utf-8 -*-
# @Time     : 2021/11/26 11:05
# @Author   : Aries
# @File     : 装饰器装饰类.py
# @Describe : 
# @Software : PyCharm

def decorator(func):
    def inner(*args, **kwargs):
        print("装饰器装饰类...")
        return func(*args, **kwargs)
    return inner

@decorator
class MyClass:
    def __init__(self):
        print("__init__")

    def eat(self, food):
        print(f"睡醒了吃{food}大餐...")


if __name__ == '__main__':
    a = MyClass()
    a.eat("大鱼大肉")
